/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ProjectPanel.java
 *
 * Created on 25-nov-2011, 9:52:07
 */
package DQE.GUI;

/**
 *
 * @author Física
 */
public class ProjectPanel extends javax.swing.JPanel {

    /** Creates new form ProjectPanel */
    public ProjectPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        lbImages = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        imagesTable = new javax.swing.JTable();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        lbImageFile = new javax.swing.JLabel();
        txImageFile = new javax.swing.JTextField();
        btProjectName = new javax.swing.JButton();
        radioRX = new javax.swing.JRadioButton();
        radioMamo = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();

        buttonGroup1.add(radioRX);
        buttonGroup1.add(radioMamo);

        lbImages.setText("Imágenes");

        jScrollPane1.setHorizontalScrollBar(null);

        imagesTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"Fichero1",  "DICOM", "MTF"},
                {"Fichero2", "DICOM", "NPS"},
                {"Fichero3", "RAW", "OpenField"},
                {"Fichero4",  "¿?"}
            },
            new String [] {"Nombre", "Formato", "Tipo"}
        ));
        jScrollPane1.setViewportView(imagesTable);

        jButton5.setText("+");

        jButton6.setText("-");

        lbImageFile.setText("Nombre:");

        txImageFile.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txImageFileActionPerformed(evt);
            }
        });

        btProjectName.setText("...");
        btProjectName.setToolTipText("Abrir un proyecto existente");

        radioRX.setSelected(true);
        radioRX.setText("Convencional");

        radioMamo.setText("Mamografía");

        jLabel1.setText("Tipo");

        jLabel2.setText("En principio el botón de configurar se ha quedado sin contenido, pero casi prefiero dejarlo y quitarlo al final");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 512, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(lbImageFile, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addComponent(lbImages))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(radioRX)
                                .addGap(18, 18, 18)
                                .addComponent(radioMamo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 187, Short.MAX_VALUE)
                                .addComponent(jButton5))
                            .addComponent(txImageFile, javax.swing.GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btProjectName, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton6))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton6)
                        .addComponent(jButton5))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbImageFile)
                            .addComponent(txImageFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btProjectName))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(radioMamo)
                            .addComponent(jLabel1)
                            .addComponent(radioRX))
                        .addGap(8, 8, 8)
                        .addComponent(lbImages)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addContainerGap(59, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void txImageFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txImageFileActionPerformed

        // TODO add your handling code here:}//GEN-LAST:event_txImageFileActionPerformed
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btProjectName;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JTable imagesTable;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lbImageFile;
    private javax.swing.JLabel lbImages;
    private javax.swing.JRadioButton radioMamo;
    private javax.swing.JRadioButton radioRX;
    private javax.swing.JTextField txImageFile;
    // End of variables declaration//GEN-END:variables
}
